<template>
  <div>
    <el-carousel :interval="5000" height="auto" arrow="always">
      <el-carousel-item
        style="height: calc(100vh - 60px)"
        v-for="item in imgUrl"
        :key="item"
      >
        <img src="../../assets/home.jpg" alt="" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script setup>
import { ref } from "vue";
const imgUrl = ref([
  "../../assets/home.jpg"
]);
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>